home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Storage / LinkDlgs.r < prev    next >
Encoding:
Text File  |  1996-04-22  |  32.2 KB  |  1,258 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        LinkDlgs.r
  3.  
  4.     Contains:    resources for data interchange dialogs
  5.  
  6.     Owned by:    Craig Carper
  7.  
  8.     Copyright:    © 1994 - 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <19>    10/16/95    CC        GM 1293229: 'MENU' resources must be
  13.                                     nonpurgeable.
  14.                                     GM 1292157: Changed "No Kinds" to
  15.                                     "Unknown"; "None Available" to "None for
  16.                                     this Kind".
  17.         <18>     9/20/95    TÇ        1285201 GM: Use
  18.                                     alertPositionParentWindowScreen for dialogs
  19.         <17>     8/23/95    CC        1278840: Added kPasteAsEmbedEditorText
  20.                                     item.
  21.         <16>     7/28/95    CC        1242615: Made all resources purgeable.
  22.                                     1242576: Removed resources for Others
  23.                                     dialog.
  24.         <15>     4/27/95    CC        1243348: Removed BreakLinkAlert resources.
  25.         <14>     4/25/95    CC        1242555: Entered as bug 1242615 to check
  26.                                     for purgeable resources.
  27.                                     1242555: $5 entered as bug 1242617.
  28.         <13>     3/27/95    CC        1229640: Added items for editor popup and
  29.                                     static text.
  30.         <12>     3/17/95    CC        1220339: Changed title of Translation
  31.                                     Choices dialog.
  32.         <11>      3/9/95    CC        1220342: Tweeked layout of others dialog.
  33.         <10>      3/3/95    CC        1223861 Added link status and link edition
  34.                                     alert resources.
  35.          <9>     2/24/95    CC        1153783: Changed link edition filename
  36.                                     template string.
  37.          <8>     2/15/95    CC        1194705 Changed titles of link info dialogs
  38.                                     to "Link Destination Info" and "Link Source
  39.                                     Info".
  40.                                     1196831 Added strings for constructing size
  41.                                     of links.
  42.                                     1153942 Changed "Modified:" to "Updated:"
  43.                                     in Link Info dialogs
  44.                                     1220324 Removed static text items for
  45.                                     labeling radio buttons.
  46.                                     1191537 Revised Link Update alert
  47.                                     resources.
  48.                                     1220318 Data Interchange Dialogs need to
  49.                                     use 'finf' resource for localization
  50.                                     1191537 Need better wording in circular
  51.                                     link alert.
  52.                                     1220324 Added 'CNTL' resources for controls
  53.                                     that use window font.
  54.          <7>      2/7/95    CC        1211295: Added two items to PasteAs dialog:
  55.                                     kPasteAsKindLabel kPasteAsKindText.
  56.          <6>      2/1/95    CC        1153347: Added 'STR ' resource for
  57.                                     notification.
  58.          <5>     1/10/95    CC        1153930: Added translation choices to Paste
  59.                                     As dialog.
  60.          <4>     10/7/94    CC        1160232 - Changes to link update alerts.
  61.          <3>     9/20/94    CC        1160232 - Added resources for link cycle
  62.                                     Alert dialog.
  63.          <2>     7/31/94    CC        Initialize kind string of link destination
  64.                                     dialog to "(Unknown)".
  65.          <1>     6/24/94    CC        first checked in
  66.          <3>      6/3/94    CC        Fixed dctb resources.
  67.          <2>     3/17/94    CC        Added resources for ShowLinkSourceInfo()
  68.                                     and ShowLinkDestinationInfo(). (1151329)
  69.          <1>     3/14/94    CC        first checked in
  70.          <0>     3/14/94    CC        Resources for Paste As dialog (1144253).
  71.  
  72. */
  73.  
  74. // Picture items are used for the merge and embed icons because 32x32 ICONs
  75. // don't work well.  The desired icon size is 19(high)x16(width).  If the
  76. // display item is the desired size, the ICON is scaled.  If the display item
  77. // is 32x32, the ICONs are drawn AFTER their radio buttons and can obscure them,
  78. // even though the radio buttons are later in the item sequence.
  79.  
  80. #define SystemSevenOrBetter 1            // we want the extended types
  81. #define    SystemSevenOrLater    1            // Types.r uses this variable
  82.  
  83. #define oldTemp        // Needed to use old-style 'dctb' resource
  84. #include "Types.r"
  85. #undef oldTemp        // End of 'dctb' fix
  86.  
  87. #include "SysTypes.r"
  88.  
  89. #include "LinkDefs.h"
  90.  
  91. #define kDialogHeight    223
  92. #define kDialogWidth    222
  93.  
  94. #define kTopBegin                      7
  95. #define kLeading                      4
  96. #define kLeftBegin                     10
  97.  
  98. #define kLargeToSmallVerticalOffset      1
  99. #define kSmallLineHeight             12
  100. #define kRightStop                    213
  101. #define kBottomStop                    214
  102. #define kStdButtonHeight             20
  103. #define kOkCancelWidth                 60
  104. #define kOkCancelSep                 13
  105. #define kCheckboxHeight                 14
  106. #define kCheckboxWidth                 14
  107. #define kRadioButtonHeight             14
  108. #define kRadioButtonWidth             14
  109. #define kCheckboxVertSep              4
  110. #define kCheckboxHorizSep              4
  111. #define kRadioBtnVertSep              3
  112. #define kRadioBtnHorizSep              4
  113. #define kPopupHeight                 19
  114.  
  115. #define kPasteWithLinkTextTop        kTopBegin+kLargeToSmallVerticalOffset
  116. #define kPasteWithLinkTextLeft        kLeftBegin+kCheckboxWidth+kCheckboxHorizSep
  117. #define kPasteWithLinkTextWidth        78
  118. #define kPasteWithLinkTextRight        kPasteWithLinkTextLeft+kPasteWithLinkTextWidth
  119.  
  120. #define kUpdateLinksTop                kTopBegin+kCheckboxHeight+kLeading
  121. #define kUpdateLinksLeft            kLeftBegin+kCheckboxWidth+kCheckboxHorizSep
  122. #define kUpdateLinksWidth            59
  123.  
  124. #define kAutomaticRadioBtnTop        kTopBegin+kCheckboxHeight+kRadioBtnVertSep
  125. #define kAutomaticRadioBtnLeft        kLeftBegin+kCheckboxWidth+kCheckboxHorizSep+kUpdateLinksWidth+kCheckboxHorizSep
  126. #define kAutomaticTextTop            kAutomaticRadioBtnTop+kLargeToSmallVerticalOffset
  127. #define kAutomaticTextLeft            kAutomaticRadioBtnLeft+kRadioButtonWidth+kRadioBtnHorizSep
  128. #define kAutomaticTextWidth            68
  129. #define kAutomaticTextRight            kAutomaticTextLeft+kAutomaticTextWidth
  130. #define kAutoManRadioBtnSep            1
  131.  
  132. #define kManualRadioBtnTop            kAutomaticRadioBtnTop+kRadioButtonHeight+kAutoManRadioBtnSep
  133. #define kManualRadioBtnLeft            kAutomaticRadioBtnLeft
  134. #define kManualTextTop                kManualRadioBtnTop+kLargeToSmallVerticalOffset
  135. #define kManualTextLeft                kManualRadioBtnLeft+kRadioButtonWidth+kRadioBtnHorizSep
  136. #define kManualTextWidth            46
  137.  
  138. #define kManualTextRight            kManualTextLeft+kManualTextWidth
  139.  
  140. /* #define kHorizSepTop                kManualTextTop+kSmallLineHeight+kLeading */
  141. #define kHorizSepTop                62
  142.  
  143. #define kAtDestTextTop                72
  144.  
  145. #define kMergePictTop                90
  146. #define kMergePictHeight            19
  147. #define kMergePictWidth                16
  148.  
  149. #define kMergeRadioBtnTop            kMergePictTop+2        
  150. #define kMergeRadioBtnLeft            kLeftBegin+kMergePictWidth+kCheckboxHorizSep
  151. #define kMergeTextTop                kMergeRadioBtnTop+kLargeToSmallVerticalOffset
  152. #define kMergeTextLeft                kMergeRadioBtnLeft+kRadioButtonWidth+kRadioBtnHorizSep
  153. #define kMergeTextWidth                100
  154. #define kMergeTextRight                kMergeTextLeft+kMergeTextWidth
  155.  
  156. #define kEmbedPictTop                kMergePictTop+kMergePictHeight+3
  157. #define kEmbedPictHeight            kMergePictHeight
  158. #define kEmbedPictWidth                kMergePictWidth
  159.  
  160. #define kEmbedRadioBtnTop            kEmbedPictTop+2
  161. #define kEmbedRadioBtnLeft            kMergeRadioBtnLeft
  162. #define kEmbedTextTop                kEmbedRadioBtnTop+kLargeToSmallVerticalOffset
  163. #define kEmbedTextLeft                kMergeTextLeft
  164. #define kEmbedTextWidth                51
  165. #define kEmbedTextRight                kEmbedTextLeft+kEmbedTextWidth
  166.  
  167. #define kEmbedPopupTop                kEmbedRadioBtnTop-1
  168. #define kEmbedPopupLeft                kEmbedTextLeft+kEmbedTextWidth
  169.  
  170. #define kKindPopupTop                140
  171. #define kKindPopupLeft                kMergeRadioBtnLeft-2
  172. #define kKindTextWidth                33
  173.  
  174. #define kEditorPopupTop                kKindPopupTop+21
  175. #define kEditorPopupLeft            kMergeRadioBtnLeft-10
  176. #define kEditorTextWidth            41
  177.  
  178.  
  179. //-------------------------------------------------------------------------------------
  180. // Paste As Dialog
  181. //-------------------------------------------------------------------------------------
  182.  
  183. resource 'DLOG' (kPasteAsDlgID, "Paste As", purgeable) {
  184.     {0, 0, kDialogHeight, kDialogWidth},
  185.     movableDBoxProc,
  186.     invisible,
  187.     noGoAway,
  188.     0x0,
  189.     kPasteAsDlgID,
  190.     "Paste As",
  191.     alertPositionParentWindowScreen
  192. };
  193.  
  194. /* Color table for Paste As Dialog */
  195. resource 'dctb' (kPasteAsDlgID, "Paste As", purgeable) {
  196.     0,
  197.     0,
  198.     {
  199.         wContentColor,0xFFFF,0xFFFF,0xFFFF
  200.     }
  201. };
  202.  
  203. /* Item list for Paste As… dialog */
  204. resource 'DITL' (kPasteAsDlgID,  "Paste As", purgeable) {
  205.     {    /* array DITLarray: 23 elements */
  206.         /* [1] */
  207.         { kBottomStop-kStdButtonHeight, 
  208.           kRightStop-kOkCancelWidth, 
  209.           kBottomStop, 
  210.           kRightStop
  211.         },
  212.         Button {
  213.             enabled,
  214.             "Paste"
  215.         },
  216.         /* [2] */
  217.         { kBottomStop-kStdButtonHeight,
  218.           kRightStop-kOkCancelWidth-kOkCancelSep-kOkCancelWidth,
  219.           kBottomStop,
  220.           kRightStop-kOkCancelWidth-kOkCancelSep
  221.         },
  222.         Button {
  223.             enabled,
  224.             "Cancel"
  225.         },
  226.         
  227.         /* [3] Paste with Link checkbox */
  228.         { kTopBegin,
  229.           kLeftBegin,
  230.           kTopBegin+kCheckboxHeight,
  231.           kPasteWithLinkTextRight
  232.         },
  233.         Control {
  234.             enabled,
  235.             kPasteAsCheckboxCtrlID
  236.         },
  237.  
  238.         /* [4] Update Links label (active appearance) */
  239.         { kUpdateLinksTop,
  240.           kUpdateLinksLeft,
  241.           kUpdateLinksTop+kLargeToSmallVerticalOffset+kSmallLineHeight,
  242.           kUpdateLinksLeft+kUpdateLinksWidth
  243.         },
  244.         StaticText {
  245.             disabled,
  246.             "Get Updates:"
  247.         },
  248.  
  249.         /* [5] Update Links label (inactive appearance) */
  250.         { kUpdateLinksTop,
  251.           kUpdateLinksLeft,
  252.           kUpdateLinksTop+kLargeToSmallVerticalOffset+kSmallLineHeight,
  253.           kUpdateLinksLeft+kUpdateLinksWidth
  254.         },
  255.         StaticText {
  256.             disabled,
  257.             "Get Updates:"
  258.         },
  259.  
  260.         /* [6] Automatic update radio button */
  261.         { kAutomaticRadioBtnTop,
  262.           kAutomaticRadioBtnLeft,
  263.           kAutomaticRadioBtnTop + kRadioButtonHeight,
  264.           kAutomaticTextRight
  265.         },
  266.         Control {
  267.             enabled,
  268.             kPasteAsAutoRadioBtnCtrlID
  269.         },
  270.  
  271.         /* [7] Manual update radio button */
  272.         { kManualRadioBtnTop,
  273.           kManualRadioBtnLeft,
  274.           kManualRadioBtnTop + kRadioButtonHeight,
  275.           kManualTextRight
  276.         },
  277.         Control {
  278.             enabled,
  279.             kPasteAsManualRadioBtnCtrlID
  280.         },
  281.  
  282.         /* [8] Horizontal Separator */
  283.         { kHorizSepTop,
  284.           kLeftBegin,
  285.           kHorizSepTop + 1,
  286.           kRightStop
  287.         },
  288.         UserItem {
  289.             enabled
  290.         },
  291.  
  292.         /* [9] At the destination text */
  293.         { kAtDestTextTop,
  294.           kLeftBegin,
  295.           kAtDestTextTop + kSmallLineHeight,
  296.           kRightStop
  297.         },
  298.         StaticText {
  299.             disabled,
  300.             "At the Destination:"
  301.         },
  302.  
  303.         /* [10] Merge Pict */
  304.         { kMergePictTop,
  305.           kLeftBegin,
  306.           kMergePictTop + kMergePictHeight,
  307.           kLeftBegin + kMergePictWidth
  308.         },
  309.         Picture {
  310.             enabled,
  311.             kPasteAsMergePictID
  312.         },
  313.  
  314.         /* [11] User item to disable previous item */
  315.         { 0,0,0,0 },
  316.         UserItem {
  317.             disabled,
  318.         },
  319.  
  320.         /* [12] Merge radio button */
  321.         { kMergeRadioBtnTop,
  322.           kMergeRadioBtnLeft,
  323.           kMergeRadioBtnTop + kRadioButtonHeight,
  324.           kMergeTextRight
  325.         },
  326.         Control {
  327.             enabled,
  328.             kPasteAsMergeRadioBtnCtrlID
  329.         },
  330.  
  331.         /* [13] Embed Pict */
  332.         { kEmbedPictTop,
  333.           kLeftBegin,
  334.           kEmbedPictTop + kEmbedPictHeight,
  335.           kLeftBegin + kEmbedPictWidth
  336.         },
  337.         Picture {
  338.             enabled,
  339.             kPasteAsEmbedPictID
  340.         },
  341.  
  342.         /* [14] User item to disable previous item */
  343.         { 0,0,0,0 },
  344.         UserItem {
  345.             disabled,
  346.         },
  347.  
  348.         /* [15] Embed radio button */
  349.         /* The label of the Embed As radio button overlaps the title of the Embed As popup. */
  350.         /* The radio button item must be before the popup item, so mouse clicks over the */
  351.         /* label are handled by the radio button item, not the popup item. */
  352.         /* Both controls draw the text; this causes problems when the popup is disabled, */
  353.         /* since it will dim the text and the radio button will appear inactive. */
  354.         { kEmbedRadioBtnTop,
  355.           kEmbedRadioBtnLeft,
  356.           kEmbedRadioBtnTop + kRadioButtonHeight,
  357.           kEmbedTextRight
  358.         },
  359.         Control {
  360.             enabled,
  361.             kPasteAsEmbedRadioBtnCtrlID
  362.         },
  363.  
  364.         /* [16] Embed As popup menu */
  365.         { kEmbedPopupTop,
  366.           kEmbedPopupLeft,
  367.           kEmbedPopupTop + kPopupHeight,
  368.           kRightStop
  369.         },
  370.         Control {
  371.             enabled,
  372.             kPasteAsEmbedPopupCntl
  373.         },
  374.  
  375.         /* [17] Kind popup menu */
  376.         { kKindPopupTop,
  377.           kKindPopupLeft,
  378.           kKindPopupTop + kPopupHeight,
  379.           kRightStop
  380.         },
  381.         Control {
  382.             enabled,
  383.             kPasteAsKindPopupCntl
  384.         },
  385.  
  386.         /* [18] Kind label */
  387.         /* Used when the popup is unavailable because selecting a kind is not allowed */
  388.         { kKindPopupTop + 2,
  389.           kKindPopupLeft + 3,
  390.           kKindPopupTop + kSmallLineHeight,
  391.           kKindPopupLeft + 35
  392.         },
  393.         StaticText {
  394.             disabled,
  395.             "Kind:"
  396.         },
  397.  
  398.         /* [19] Current kind */
  399.         /* Used when the popup is unavailable because selecting a kind is not allowed */
  400.         { kKindPopupTop + 2,
  401.           kKindPopupLeft + /* arbitrary */ 47,
  402.           kKindPopupTop + kPopupHeight,
  403.           kRightStop
  404.         },
  405.         StaticText {
  406.             disabled,
  407.             ""
  408.         },
  409.  
  410.         /* [20] Editor popup menu */
  411.         { kEditorPopupTop,
  412.           kEditorPopupLeft,
  413.           kEditorPopupTop + kPopupHeight,
  414.           kRightStop
  415.         },
  416.         Control {
  417.             enabled,
  418.             kPasteAsEditorPopupCntl
  419.         },
  420.  
  421.         /* [21] Editor label */
  422.         /* Used when the popup is unavailable because selecting a Editor is not allowed */
  423.         { kEditorPopupTop + 2,
  424.           kEditorPopupLeft + 3,
  425.           kEditorPopupTop + kSmallLineHeight,
  426.           kEditorPopupLeft + 38
  427.         },
  428.         StaticText {
  429.             disabled,
  430.             "Editor:"
  431.         },
  432.  
  433.         /* [22] Current Editor */
  434.         /* Used when the popup is unavailable because selecting a Editor is not allowed */
  435.         { kEditorPopupTop + 2,
  436.           kEditorPopupLeft + 55,
  437.           kEditorPopupTop + kPopupHeight,
  438.           kRightStop
  439.         },
  440.         StaticText {
  441.             disabled,
  442.             "Unknown"
  443.         },
  444.  
  445.         /* [23] Embedded Editor */
  446.         /* Used when the popup is unavailable because a frame is being moved */
  447.         { kEditorPopupTop + 2,
  448.           kEditorPopupLeft + 55,
  449.           kEditorPopupTop + kPopupHeight,
  450.           kRightStop
  451.         },
  452.         StaticText {
  453.             disabled,
  454.             "Unknown"
  455.         },
  456.  
  457.         /* [24] Outline around default button */
  458.         { kBottomStop-kStdButtonHeight-1-4, 
  459.           kRightStop-kOkCancelWidth-3-4, 
  460.           kBottomStop-1+4, 
  461.           kRightStop-3+4
  462.         },
  463.         UserItem {
  464.             disabled
  465.         }
  466.     }
  467. };
  468.  
  469. /* Color table for Paste As Dialog items */
  470. data 'ictb' (kPasteAsDlgID, "Paste As") {
  471.     $"0000 0000" /* [1]  OK button is unaffected                            */
  472.     $"0000 0000" /* [2]  Cancel button is unaffected                        */
  473.     $"0000 0000" /* [3]  Paste with Link checkbox is unaffected                */
  474.     $"0000 0000" /* [4]  Update Links label (enabled) is unaffected            */
  475.     $"4000 0060" /* [5]  Update Links label (disabled) change mode            */
  476.     $"0000 0000" /* [6]  Automatic update radio button is unaffected        */
  477.     $"0000 0000" /* [7]  Manual update radio button is unaffected            */
  478.     $"0000 0000" /* [8]  Horizontal Separator is unaffected                    */
  479.     $"0000 0000" /* [9]  At the destination text is unaffected                */
  480.     $"0000 0000" /* [10] Merge Pict is unaffected                            */
  481.     $"0000 0000" /* [11] User item for disabling is unaffected                */
  482.     $"0000 0000" /* [12] Merge radio button is unaffected                    */
  483.     $"0000 0000" /* [13] Embed Pict is unaffected                            */
  484.     $"0000 0000" /* [14] User item for disabling is unaffected                */
  485.     $"0000 0000" /* [15] Embed radio button is unaffected                    */
  486.     $"0000 0000" /* [16] Embed As popup menu is unaffected                    */
  487.     $"0000 0000" /* [17] Kind popup menu is unaffected                        */
  488.     $"0000 0000" /* [18]                                                     */
  489.     $"0000 0000" /* [19]                                                     */
  490.     $"0000 0000" /* [20]                                                     */
  491.     $"0000 0000" /* [21]                                                     */
  492.     $"0000 0000" /* [22]                                                     */
  493.     $"0000 0000" /* [23]                                                     */
  494.     $"0000 0000" /* [24]                                                     */
  495.     /* Text style record */
  496.     $"0003 0100 000A"      /* Geneva, Bold, 10 */
  497.     $"0000 0000 0000"      /* fore color       */
  498.     $"0000 0000 0000"      /* back color       */
  499.     $"0031"                /* mode = grayishTextOr = 49 */
  500. };
  501.  
  502. /* Window font for Paste As Dialog items */
  503. resource 'finf' (kPasteAsDlgID, purgeable) {
  504.     {
  505.         3,            /* Font Number, 3 = Geneva    */
  506.         plain,        /*         Font Style        */
  507.         10            /*         Font Size        */
  508.     }
  509. };
  510.  
  511. resource 'CNTL' (kPasteAsCheckboxCtrlID, purgeable) {
  512.         { kTopBegin,
  513.           kLeftBegin,
  514.           kTopBegin+kCheckboxHeight,
  515.           kPasteWithLinkTextRight
  516.         },
  517.         0,
  518.         visible,
  519.         1,
  520.         0,
  521.         checkboxProcUseWFont,
  522.         0,                            /* Refcon */
  523.         "Paste with Link"
  524. };
  525.  
  526. resource 'CNTL' (kPasteAsAutoRadioBtnCtrlID, purgeable) {
  527.         { kAutomaticRadioBtnTop,
  528.           kAutomaticRadioBtnLeft,
  529.           kAutomaticRadioBtnTop + kRadioButtonHeight,
  530.           kAutomaticTextRight
  531.         },
  532.         0,
  533.         visible,
  534.         1,
  535.         0,
  536.         radioButProcUseWFont,
  537.         0,                            /* Refcon */
  538.         "Automatically"
  539. };
  540.  
  541. resource 'CNTL' (kPasteAsManualRadioBtnCtrlID, purgeable) {
  542.         { kManualRadioBtnTop,
  543.           kManualRadioBtnLeft,
  544.           kManualRadioBtnTop + kRadioButtonHeight,
  545.           kManualTextRight
  546.         },
  547.         0,
  548.         visible,
  549.         1,
  550.         0,
  551.         radioButProcUseWFont,
  552.         0,                            /* Refcon */
  553.         "Manually"
  554. };
  555.  
  556. resource 'CNTL' (kPasteAsMergeRadioBtnCtrlID, purgeable) {
  557.         { kMergeRadioBtnTop,
  558.           kMergeRadioBtnLeft,
  559.           kMergeRadioBtnTop + kRadioButtonHeight,
  560.           kMergeTextRight
  561.         },
  562.         0,
  563.         visible,
  564.         1,
  565.         0,
  566.         radioButProcUseWFont,
  567.         0,                            /* Refcon */
  568.         "Merge with Contents"
  569. };
  570.  
  571. resource 'CNTL' (kPasteAsEmbedRadioBtnCtrlID, purgeable) {
  572.         { kEmbedRadioBtnTop,
  573.           kEmbedRadioBtnLeft,
  574.           kEmbedRadioBtnTop + kRadioButtonHeight,
  575.           kEmbedTextRight
  576.         },
  577.         0,
  578.         visible,
  579.         1,
  580.         0,
  581.         radioButProcUseWFont,
  582.         0,                            /* Refcon */
  583.         "Embed as:"
  584. };
  585.  
  586. resource 'PICT' (kPasteAsMergePictID, "Merge Icon", purgeable) {
  587.     97,
  588.     {0, 0, 19, 16},
  589.     $"1101 A000 8201 000A 0000 0000 0020 0020"
  590.     $"9000 0200 0000 0000 1300 1000 0000 0000"
  591.     $"1300 1000 0000 0000 1300 1000 00FF FF80"
  592.     $"0180 0192 4980 0180 0193 F980 0180 019F"
  593.     $"F980 0180 019F C980 0180 0192 4980 0180"
  594.     $"01FF FFA0 0083 FF"
  595. };
  596.  
  597. resource 'PICT' (kPasteAsEmbedPictID, "Embed Icon", purgeable) {
  598.     97,
  599.     {0, 0, 19, 16},
  600.     $"1101 A000 8201 000A 0000 0000 0020 0020"
  601.     $"9000 0200 0000 0000 1300 1000 0000 0000"
  602.     $"1300 1000 0000 0000 1300 1000 00FF FF80"
  603.     $"0180 0192 4980 0180 0193 F982 0982 0992"
  604.     $"0982 0982 0993 F980 0180 0192 4980 0180"
  605.     $"01FF FFA0 0083 FF"
  606. };
  607.  
  608. // The "Embed as" popup has no title, because the radio button label occupies the
  609. // same space.  If the radio button isn't selected, the popup is disabled.  If the
  610. // popup had a title which exactly overlayed the radio button label, the title
  611. // would be dimmed and the radio button would appear disabled.
  612. resource 'CNTL' (kPasteAsEmbedPopupCntl, "Embed as", purgeable) {
  613.         { kEmbedPopupTop,
  614.           kEmbedPopupLeft,
  615.           kEmbedPopupTop + kPopupHeight,
  616.           kRightStop
  617.         },
  618.         popupTitleLeftJust,
  619.         visible,
  620.         0,                            /* zero width title; radio button provides title */
  621.         kPasteAsEmbedPopupMenu,        /* resource id of MENU resource */
  622.         popupMenuCDEFproc+popupUseWFont+popupFixedWidth,
  623.         0,                            /* Refcon */
  624.         ""
  625. };
  626.  
  627. resource 'CNTL' (kPasteAsKindPopupCntl, "Kind", purgeable) {
  628.         { kKindPopupTop,
  629.           kKindPopupLeft,
  630.           kKindPopupTop + kPopupHeight,
  631.           kRightStop
  632.         },
  633.         popupTitleLeftJust,
  634.         visible,
  635.         kKindTextWidth,                /* width of title in pixels     */
  636.         kPasteAsKindPopupMenu,        /* resource id of MENU resource */
  637.         popupMenuCDEFproc+popupUseWFont+popupFixedWidth,
  638.         0,                            /* Refcon */
  639.         "Kind:"
  640. };
  641.  
  642. resource 'CNTL' (kPasteAsEditorPopupCntl,"Editor", purgeable) {
  643.         { kEditorPopupTop,
  644.           kEditorPopupLeft,
  645.           kEditorPopupTop + kPopupHeight,
  646.           kRightStop
  647.         },
  648.         popupTitleLeftJust,
  649.         visible,
  650.         kEditorTextWidth,                /* width of title in pixels     */
  651.         kPasteAsEditorPopupMenu,        /* resource id of MENU resource */
  652.         popupMenuCDEFproc+popupUseWFont+popupFixedWidth,
  653.         0,                            /* Refcon */
  654.         "Editor:"
  655. };
  656.  
  657. resource 'MENU' (kPasteAsEmbedPopupMenu, "Embed as", nonpurgeable) {    // 'MENU' resources must not be purgeable [cc]
  658.     kPasteAsEmbedPopupMenu,
  659.     textMenuProc,
  660.     allEnabled,
  661.     enabled,
  662.     "",
  663.     {    /* array: 4 elements */
  664.         "Frame", noIcon, noKey, noMark, plain,
  665.         "Large Icon", noIcon, noKey, noMark, plain,
  666.         "Small Icon", noIcon, noKey, noMark, plain,
  667.         "Thumbnail", noIcon, noKey, noMark, plain
  668.     }
  669. };
  670.  
  671. resource 'MENU' (kPasteAsKindPopupMenu, "Kind", nonpurgeable) {
  672.     kPasteAsKindPopupMenu,
  673.     textMenuProc,
  674.     allEnabled,
  675.     enabled,
  676.     "",
  677.     {    /* array: 1 elements */
  678.         "Translate to…", noIcon, noKey, noMark, italic
  679.     }
  680. };
  681.  
  682. resource 'MENU' (kPasteAsEditorPopupMenu, "Editor", nonpurgeable) {
  683.     kPasteAsEditorPopupMenu,
  684.     textMenuProc,
  685.     allEnabled,
  686.     enabled,
  687.     "",
  688.     {    /* array: 0 elements */
  689.         "<Your editor goes here>", noIcon, noKey, noMark, plain
  690.     }
  691. };
  692.  
  693. //-------------------------------------------------------------------------------------
  694. // Link Source Info Dialog
  695. //-------------------------------------------------------------------------------------
  696.  
  697. #define kLinkDlgLabelRight 87
  698. #define kLinkDlgInfoLeft   97
  699. #define kLinkDlgInfoRight  256
  700.  
  701. resource 'DLOG' (kLinkSrcInfoDlgID, "Link Source Info", purgeable) {
  702.     {74, 114, 235, 487},
  703.     movableDBoxProc,
  704.     visible,
  705.     goAway,
  706.     0x0,
  707.     kLinkSrcInfoDlgID,
  708.     "Link Source Info",
  709.     alertPositionParentWindowScreen
  710. };
  711.  
  712. resource 'DITL' (kLinkSrcInfoDlgID, "Link Source Info", purgeable) {
  713.     {    /* array DITLarray: 16 elements */
  714.         /* [1] kLinkSrcOKBtn */
  715.         {131, 268, 151, 359},
  716.         Button {
  717.             enabled,
  718.             "OK"
  719.         },
  720.         /* [2] kLinkSrcCancelBtn */
  721.         {100, 264, 120, 363},
  722.         Button {
  723.             enabled,
  724.             "Cancel"
  725.         },
  726.         /* [3] Outline around default button */
  727.         { 131-1-4, 268-3-4, 151-1+4, 359-3+4},
  728.         UserItem {
  729.             disabled
  730.         },
  731.         /* [4] kLinkSrcSeparator */
  732.         {76, 264, 77, 363},
  733.         UserItem {
  734.             disabled
  735.         },
  736.         /* [5] NOT USED IN THIS DIALOG; used as a placeholder to keep item numbers
  737.          *                              the same between LinkSrc and LinkDst
  738.          */
  739.         {0, 0, 0, 0},
  740.         Button {
  741.             enabled,
  742.             "Find Source"
  743.         },
  744.         /* [6] kLinkSrcUpdateBtn */
  745.         {34, 264, 54, 363},
  746.         Button {
  747.             enabled,
  748.             "Update Now"
  749.         },
  750.         /* [7] kLinkSrcBreakLinkBtn */
  751.         {7, 264, 27, 363},
  752.         Button {
  753.             enabled,
  754.             "Break Link"
  755.         },
  756.         /* [8] kLinkSrcManualRadioBtn */
  757.         {87, kLinkDlgInfoLeft-3, 102, 172},
  758.         Control {
  759.             enabled,
  760.             kManualRadioBtnCtrlID
  761.         },
  762.         /* [9] kLinkSrcOnSaveRadioBtn */
  763.         {71, kLinkDlgInfoLeft-3, 86, 172},
  764.         Control {
  765.             enabled,
  766.             kOnSaveRadioBtnCtrlID
  767.         },
  768.         /* [10] */
  769.         {71, 8, 87, kLinkDlgLabelRight+1},
  770.         StaticText {
  771.             disabled,
  772.             "Send Updates:"
  773.         },
  774.         /* [11] Modified Date */
  775.         {50, kLinkDlgInfoLeft, 66, kLinkDlgInfoRight},
  776.         StaticText {
  777.             disabled,
  778.             "^2  ^3"
  779.         },
  780.         /* [12] Modified Label */
  781.         {50, 38, 66, kLinkDlgLabelRight},
  782.         StaticText {
  783.             disabled,
  784.             "Updated:"
  785.         },
  786.         /* [13] Creation Date */
  787.         {29, kLinkDlgInfoLeft, 45, kLinkDlgInfoRight},
  788.         StaticText {
  789.             disabled,
  790.             "^0  ^1"
  791.         },
  792.         /* [14] Created Label */
  793.         {29, 39, 45, kLinkDlgLabelRight},
  794.         StaticText {
  795.             disabled,
  796.             "Created:"
  797.         },
  798.         /* [15] Kind */
  799.         {8, kLinkDlgInfoLeft, 24, kLinkDlgInfoRight},
  800.         StaticText {
  801.             disabled,
  802.             "Unknown"
  803.         },
  804.         /* [16] Kind Label */
  805.         {8, 56, 24, kLinkDlgLabelRight},
  806.         StaticText {
  807.             disabled,
  808.             "Kind:"
  809.         }
  810.     }
  811. };
  812.  
  813. resource 'dctb' (kLinkSrcInfoDlgID, purgeable) {
  814.     0,
  815.     0,
  816.     {
  817.         wContentColor,0xFFFF,0xFFFF,0xFFFF
  818.     }
  819. };
  820.  
  821. data 'ictb' (kLinkSrcInfoDlgID, purgeable) {
  822.     $"0000 0000" /* [1]  */
  823.     $"0000 0000" /* [2]  */
  824.     $"0000 0000" /* [3]  */
  825.     $"0000 0000" /* [4]  */
  826.     $"0000 0000" /* [5]  */
  827.     $"0000 0000" /* [6]  */
  828.     $"0000 0000" /* [7]  */
  829.     $"0000 0000" /* [8]  */
  830.     $"0000 0000" /* [9]  */
  831.     $"0002 0040" /* [10] Static text label is Geneva 10 bold */
  832.     $"0000 0000" /* [11] */
  833.     $"0002 0040" /* [12] Static text label is Geneva 10 bold */
  834.     $"0000 0000" /* [13] */
  835.     $"0002 0040" /* [14] Static text label is Geneva 10 bold */
  836.     $"0000 0000" /* [15] */
  837.     $"0002 0040" /* [16] Static text label is Geneva 10 bold */
  838.     /* Text style record */
  839.     $"0001 0100 000A"      /* application font, Bold (high byte), size 10 */
  840.     $"0000 0000 0000"      /* fore color        */
  841.     $"0000 0000 0000 0000" /* back color + mode */
  842. };
  843.  
  844. resource 'finf' (kLinkSrcInfoDlgID, purgeable) {
  845.     {
  846.         3,            /* Font Number, 3 = Geneva    */
  847.         plain,        /*         Font Style        */
  848.         10            /*         Font Size        */
  849.     }
  850. };
  851. //-------------------------------------------------------------------------------------
  852. // Link Destination Info Dialog
  853. //-------------------------------------------------------------------------------------
  854.  
  855. resource 'DLOG' (kLinkDstInfoDlgID, "Link Destination Info", purgeable) {
  856.     {74, 114, 235, 487},
  857.     movableDBoxProc,
  858.     visible,
  859.     goAway,
  860.     0x0,
  861.     kLinkDstInfoDlgID,
  862.     "Link Destination Info",
  863.     alertPositionParentWindowScreen
  864. };
  865.  
  866. resource 'DITL' (kLinkDstInfoDlgID, "Link Destination Info", purgeable) {
  867.     {    /* array DITLarray: 16 elements */
  868.         /* [1] kLinkDstOKBtn */
  869.         {131, 268, 151, 359},
  870.         Button {
  871.             enabled,
  872.             "OK"
  873.         },
  874.         /* [2] kLinkDstCancelBtn */
  875.         {100, 264, 120, 363},
  876.         Button {
  877.             enabled,
  878.             "Cancel"
  879.         },
  880.         /* [3] Outline around default button */
  881.         { 131-1-4, 268-3-4, 151-1+4, 359-3+4},
  882.         UserItem {
  883.             disabled
  884.         },
  885.         /* [4] kLinkDstSeparator */
  886.         {90, 264, 91, 363},
  887.         UserItem {
  888.             disabled
  889.         },
  890.         /* [5] kLinkDstFindSrcBtn */
  891.         {61, 264, 81, 363},
  892.         Button {
  893.             enabled,
  894.             "Find Source"
  895.         },
  896.         /* [6] kLinkDstUpdateBtn */
  897.         {34, 264, 54, 363},
  898.         Button {
  899.             enabled,
  900.             "Update Now"
  901.         },
  902.         /* [7] kLinkDstBreakLinkBtn */
  903.         {7, 264, 27, 363},
  904.         Button {
  905.             enabled,
  906.             "Break Link"
  907.         },
  908.         /* [8] kLinkDstManualRadioBtn */
  909.         {87, kLinkDlgInfoLeft-3, 102, 172},
  910.         Control {
  911.             enabled,
  912.             kManualRadioBtnCtrlID
  913.         },
  914.         /* [9] kLinkDstAutoRadioBtn */
  915.         {71, kLinkDlgInfoLeft-3, 86, 192},
  916.         Control {
  917.             enabled,
  918.             kAutomaticRadioBtnCtrlID
  919.         },
  920.         /* [10] */
  921.         {71, 16, 87, kLinkDlgLabelRight},
  922.         StaticText {
  923.             disabled,
  924.             "Get Updates:"
  925.         },
  926.         /* [11] Modified Date */
  927.         {50, kLinkDlgInfoLeft, 66, kLinkDlgInfoRight},
  928.         StaticText {
  929.             disabled,
  930.             "^2  ^3"
  931.         },
  932.         /* [12] Modified Label */
  933.         {50, 38, 66, kLinkDlgLabelRight},
  934.         StaticText {
  935.             disabled,
  936.             "Updated:"
  937.         },
  938.         /* [13] Creation Date */
  939.         {29, kLinkDlgInfoLeft, 45, kLinkDlgInfoRight},
  940.         StaticText {
  941.             disabled,
  942.             "^0  ^1"
  943.         },
  944.         /* [14] Created Label */
  945.         {29, 39, 45, kLinkDlgLabelRight},
  946.         StaticText {
  947.             disabled,
  948.             "Created:"
  949.         },
  950.         /* [15] Kind */
  951.         {8, kLinkDlgInfoLeft, 24, kLinkDlgInfoRight},
  952.         StaticText {
  953.             disabled,
  954.             "Unknown"
  955.         },
  956.         /* [16] Kind Label */
  957.         {8, 56, 24, kLinkDlgLabelRight},
  958.         StaticText {
  959.             disabled,
  960.             "Kind:"
  961.         }
  962.     }
  963. };
  964.  
  965. resource 'dctb' (kLinkDstInfoDlgID, purgeable) {
  966.     0,
  967.     0,
  968.     {
  969.         wContentColor,0xFFFF,0xFFFF,0xFFFF
  970.     }
  971. };
  972.  
  973. data 'ictb' (kLinkDstInfoDlgID) {
  974.     $"0000 0000" /* [1]  */
  975.     $"0000 0000" /* [2]  */
  976.     $"0000 0000" /* [3]  */
  977.     $"0000 0000" /* [4]  */
  978.     $"0000 0000" /* [5]  */
  979.     $"0000 0000" /* [6]  */
  980.     $"0000 0000" /* [7]  */
  981.     $"0000 0000" /* [8]  */
  982.     $"0000 0000" /* [9]  */
  983.     $"0002 0040" /* [10] Static text label is Geneva 10 bold */
  984.     $"0000 0000" /* [11] */
  985.     $"0002 0040" /* [12] Static text label is Geneva 10 bold */
  986.     $"0000 0000" /* [13] */
  987.     $"0002 0040" /* [14] Static text label is Geneva 10 bold */
  988.     $"0000 0000" /* [15] */
  989.     $"0002 0040" /* [16] Static text label is Geneva 10 bold */
  990.     /* Text style record */
  991.     $"0001 0100 000A"      /* application font, Bold (high byte), size 10 */
  992.     $"0000 0000 0000"      /* fore color        */
  993.     $"0000 0000 0000 0000" /* back color + mode */
  994. };
  995.  
  996. resource 'finf' (kLinkDstInfoDlgID, purgeable) {
  997.     {
  998.         3,            /* Font Number, 3 = Geneva    */
  999.         plain,        /*         Font Style        */
  1000.         10            /*         Font Size        */
  1001.     }
  1002. };
  1003.  
  1004. resource 'CNTL' (kAutomaticRadioBtnCtrlID, purgeable) {
  1005.         {90, kLinkDlgInfoLeft-3, 105, 192},
  1006.         0,
  1007.         visible,
  1008.         1,
  1009.         0,
  1010.         radioButProcUseWFont,
  1011.         0,                            /* Refcon */
  1012.         "Automatically"
  1013. };
  1014.  
  1015. resource 'CNTL' (kOnSaveRadioBtnCtrlID, purgeable) {
  1016.         {90, kLinkDlgInfoLeft-3, 105, 172},
  1017.         0,
  1018.         visible,
  1019.         1,
  1020.         0,
  1021.         radioButProcUseWFont,
  1022.         0,                            /* Refcon */
  1023.         "On Save"
  1024. };
  1025.  
  1026. resource 'CNTL' (kManualRadioBtnCtrlID, purgeable) {
  1027.         {106, kLinkDlgInfoLeft-3, 121, 172},
  1028.         0,
  1029.         visible,
  1030.         1,
  1031.         0,
  1032.         radioButProcUseWFont,
  1033.         0,                            /* Refcon */
  1034.         "Manually"
  1035. };
  1036.  
  1037. //-------------------------------------------------------------------------------------
  1038. // Link Update Alert
  1039. //-------------------------------------------------------------------------------------
  1040.  
  1041. #define kLinkUpdateTextLines 5
  1042. #define kLinkUpdateTextLineHeight 16
  1043. #define kLinkUpdateTextHeight kLinkUpdateTextLines*kLinkUpdateTextLineHeight
  1044. #define kLinkUpdateLeft 78
  1045. #define kLinkUpdateTextWidth 245
  1046. #define kLinkUpdateRight kLinkUpdateLeft+kLinkUpdateTextWidth
  1047. #define kLinkUpdateBtnTop 13+kLinkUpdateTextHeight+13
  1048. #define kLinkUpdateBtnBottom kLinkUpdateBtnTop+20
  1049. #define kLinkUpdateBtnWidth 70
  1050. #define kLinkUpdateContinueBtnLeft kLinkUpdateRight-kLinkUpdateBtnWidth
  1051. #define kLinkUpdateStopBtnLeft kLinkUpdateRight-kLinkUpdateBtnWidth-13-kLinkUpdateBtnWidth
  1052.  
  1053. resource 'ALRT' (kLinkUpdateAlertID, "Link Update", purgeable) {
  1054.     {0, 0, kLinkUpdateBtnBottom+13, kLinkUpdateRight+13},
  1055.     kLinkUpdateAlertID,
  1056.     {    /* array: 4 elements */
  1057.         /* [1] */
  1058.         Ok, visible, sound1,
  1059.         /* [2] */
  1060.         Ok, visible, sound1,
  1061.         /* [3] */
  1062.         Ok, visible, sound1,
  1063.         /* [4] */
  1064.         Ok, visible, sound1
  1065.     },
  1066.     alertPositionParentWindowScreen
  1067. };
  1068.  
  1069. resource 'DITL' (kLinkUpdateAlertID, "Link Update", purgeable) {
  1070.     {    /* array DITLarray: 4 elements */
  1071.         /* [1] */
  1072.         {kLinkUpdateBtnTop, kLinkUpdateContinueBtnLeft, kLinkUpdateBtnBottom, kLinkUpdateRight},
  1073.         Button {
  1074.             enabled,
  1075.             "Update"
  1076.         },
  1077.         /* [2] */
  1078.         {kLinkUpdateBtnTop, kLinkUpdateStopBtnLeft, kLinkUpdateBtnBottom, kLinkUpdateStopBtnLeft+kLinkUpdateBtnWidth},
  1079.         Button {
  1080.             enabled,
  1081.             "Stop"
  1082.         },
  1083.         /* [3] */
  1084.         {13, 23, 45, 55},
  1085.         Icon {
  1086.             disabled,
  1087.             2
  1088.         },
  1089.         /* [4] */
  1090.         {13, kLinkUpdateLeft, 13+kLinkUpdateTextHeight, kLinkUpdateRight},
  1091.         StaticText {
  1092.             disabled,
  1093.             "Editing a link source has caused an update loop.\n"
  1094.             "\n"
  1095.             "Press Stop to interrupt updating, or press "
  1096.             "Update to continue."
  1097.         }
  1098.     }
  1099. };
  1100.  
  1101. //-------------------------------------------------------------------------------------
  1102. // Link Status Alert
  1103. //-------------------------------------------------------------------------------------
  1104.  
  1105. #define kLinkStatusTextLines 6
  1106. #define kLinkStatusTextLineHeight 16
  1107. #define kLinkStatusTextHeight kLinkStatusTextLines*kLinkStatusTextLineHeight
  1108. #define kLinkStatusLeft 78
  1109. #define kLinkStatusTextWidth 245
  1110. #define kLinkStatusRight kLinkStatusLeft+kLinkStatusTextWidth
  1111. #define kLinkStatusBtnTop 13+kLinkStatusTextHeight+13
  1112. #define kLinkStatusBtnBottom kLinkStatusBtnTop+20
  1113. #define kLinkStatusBtnWidth 70
  1114. #define kLinkStatusOKBtnLeft kLinkStatusRight-kLinkStatusBtnWidth
  1115.  
  1116. resource 'ALRT' (kLinkStatusAlertID, "Link Status", purgeable) {
  1117.     {0, 0, kLinkStatusBtnBottom+13, kLinkStatusRight+13},
  1118.     kLinkStatusAlertID,
  1119.     {    /* array: 4 elements */
  1120.         /* [1] */
  1121.         Ok, visible, sound1,
  1122.         /* [2] */
  1123.         Ok, visible, sound1,
  1124.         /* [3] */
  1125.         Ok, visible, sound1,
  1126.         /* [4] */
  1127.         Ok, visible, sound1
  1128.     },
  1129.     alertPositionParentWindowScreen
  1130. };
  1131.  
  1132. resource 'DITL' (kLinkStatusAlertID, "Link Status", purgeable) {
  1133.     {    /* array DITLarray: 3 elements */
  1134.         /* [1] */
  1135.         {kLinkStatusBtnTop, kLinkStatusOKBtnLeft, kLinkStatusBtnBottom, kLinkStatusRight},
  1136.         Button {
  1137.             enabled,
  1138.             "OK"
  1139.         },
  1140.         /* [2] */
  1141.         {13, 23, 45, 55},
  1142.         Icon {
  1143.             disabled,
  1144.             2
  1145.         },
  1146.         /* [3] */
  1147.         {13, kLinkStatusLeft, 13+kLinkStatusTextHeight, kLinkStatusRight},
  1148.         StaticText {
  1149.             disabled,
  1150.             "The link information may not be accurate, "
  1151.             "because a problem was encountered getting information about the "
  1152.             "source of the link.\n"
  1153.             "\n"
  1154.             "(Error ^0)"
  1155.         }
  1156.     }
  1157. };
  1158.  
  1159. //-------------------------------------------------------------------------------------
  1160. // Missing Link Edition Alert
  1161. //-------------------------------------------------------------------------------------
  1162.  
  1163. #define kLinkEditionTextLines 6
  1164. #define kLinkEditionTextLineHeight 16
  1165. #define kLinkEditionTextHeight kLinkEditionTextLines*kLinkEditionTextLineHeight
  1166. #define kLinkEditionLeft 78
  1167. #define kLinkEditionTextWidth 305
  1168. #define kLinkEditionRight kLinkEditionLeft+kLinkEditionTextWidth
  1169. #define kLinkEditionBtnTop 13+kLinkEditionTextHeight+13
  1170. #define kLinkEditionBtnBottom kLinkEditionBtnTop+20
  1171. #define kLinkEditionBtnWidth 70
  1172. #define kLinkEditionOKBtnLeft kLinkEditionRight-kLinkEditionBtnWidth
  1173.  
  1174. resource 'ALRT' (kLinkEditionAlertID, "Link Edition", purgeable) {
  1175.     {0, 0, kLinkEditionBtnBottom+13, kLinkEditionRight+13},
  1176.     kLinkEditionAlertID,
  1177.     {    /* array: 4 elements */
  1178.         /* [1] */
  1179.         Ok, visible, sound1,
  1180.         /* [2] */
  1181.         Ok, visible, sound1,
  1182.         /* [3] */
  1183.         Ok, visible, sound1,
  1184.         /* [4] */
  1185.         Ok, visible, sound1
  1186.     },
  1187.     alertPositionParentWindowScreen
  1188. };
  1189.  
  1190. resource 'DITL' (kLinkEditionAlertID, "Link Edition", purgeable) {
  1191.     {    /* array DITLarray: 3 elements */
  1192.         /* [1] */
  1193.         {kLinkEditionBtnTop, kLinkEditionOKBtnLeft, kLinkEditionBtnBottom, kLinkEditionRight},
  1194.         Button {
  1195.             enabled,
  1196.             "OK"
  1197.         },
  1198.         /* [2] */
  1199.         {13, 23, 45, 55},
  1200.         Icon {
  1201.             disabled,
  1202.             2
  1203.         },
  1204.         /* [3] */
  1205.         {13, kLinkEditionLeft, 13+kLinkEditionTextHeight, kLinkEditionRight},
  1206.         StaticText {
  1207.             disabled,
  1208.             "The source of this link could not be found.\n"
  1209.             "\n"
  1210.             "If you have not broken the link at the source, you may be able to "
  1211.             "get a more recent update by opening the document containing "
  1212.             "the source of this link."
  1213.         }
  1214.     }
  1215. };
  1216.  
  1217. //-------------------------------------------------------------------------------------
  1218. // Color pattern used by link dialogs
  1219. //-------------------------------------------------------------------------------------
  1220.  
  1221. data 'ppat' (kLinkDlgsppatID) {
  1222.     $"0001 0000 001C 0000 004E 0000 0000 FFFF"
  1223.     $"0000 0000 AA55 AA55 AA55 AA55 0000 0000"
  1224.     $"8001 0000 0000 0008 0008 0000 0000 0000"
  1225.     $"0000 0048 0000 0048 0000 0000 0001 0001"
  1226.     $"0001 0000 0000 0000 0056 0000 0000 55AA"
  1227.     $"55AA 55AA 55AA 0000 0000 0000 0001 0000"
  1228.     $"7777 7777 7777 0001 8888 8888 8888"
  1229. };
  1230.  
  1231. //-------------------------------------------------------------------------------------
  1232. // Strings used by the Link Manager
  1233. //-------------------------------------------------------------------------------------
  1234.  
  1235. resource 'STR ' (kODLinkMgrCannotShowSourceID, purgeable) {
  1236.     "Cannot show source of link (error ^0)."
  1237. };
  1238.  
  1239. resource 'STR ' (kODLinkMgrEditionTemplateID, purgeable) {
  1240.     "^0 Link ^1"
  1241. };
  1242.  
  1243. //-------------------------------------------------------------------------------------
  1244. // Strings used by Link Info dialogs
  1245. //-------------------------------------------------------------------------------------
  1246.  
  1247. resource 'STR ' (kODLinkInfoStrUnknownID, purgeable) {
  1248.     "Unknown"
  1249. };
  1250.  
  1251. //-------------------------------------------------------------------------------------
  1252. // Strings used by Paste As dialogs
  1253. //-------------------------------------------------------------------------------------
  1254.  
  1255. resource 'STR ' (kODPasteAsNoUserKindID, purgeable) {
  1256.     "Unknown kind<I;"
  1257. };
  1258.